<h1>Listing responses</h1>

<table>
  <tr>
    <th>Hashed question</th>
    <th>Quiz</th>
    <th>User</th>
    <th>Answers</th>
    <th>Complete</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @responses.each do |response| %>
  <tr>
    <td><%= response.hashed_question_id %></td>
    <td><%= response.quiz_id %></td>
    <td><%= response.user_id %></td>
    <td><%= response.answers %></td>
    <td><%= response.complete %></td>
    <td><%= link_to 'Show', response %></td>
    <td><%= link_to 'Edit', edit_response_path(response) %></td>
    <td><%= link_to 'Destroy', response, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Response', new_response_path %>
